import { combineReducers } from 'redux';
import { SET_CURRENT_EXPENSE, SET_RECEIPT_CHECK_ENABLE } from 'actions/expense';
import { cr } from 'share/utils';

export default combineReducers({
  currentExpense: cr({}, {
    [SET_CURRENT_EXPENSE](state, { currentExpense }) {return currentExpense;}
  }),
  receiptCheckEnable: cr({}, {
    [SET_RECEIPT_CHECK_ENABLE](state, { receiptCheckEnable }) {return receiptCheckEnable;}
  })
});
